package com.shop.admin.vo;

import com.shop.admin.valid.AddGroup;
import com.shop.admin.valid.UpdateGroup;
import lombok.Data;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.NotBlank;

@Data
public class Images {


    @NotBlank(groups = {AddGroup.class})
    @URL(message = "图片必须是一个合法的url地址",groups={AddGroup.class, UpdateGroup.class})
    private String imgUrl;

    private int defaultImg;
}
